﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{seokey}" />
<meta name="Description" content="{seodesc}" />
<title>{sdcms.iif(sdcms.strlen(seotitle)>0,seotitle,classname)}{if page>1}_第{page}页{/if}_{sdcms[webname]}</title>
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/public.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/downlist.css" rel="stylesheet" type="text/css" />
<script>var webroot="{webroot}",murl="list.asp?classid={classid}";</script>
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
{if sdcms[sys_mobile]}<script src="{webroot}lib/js/mobile.js"></script>{/if}
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
</head>

<body>
    {sdcms:include("../../sdcms_head.asp")}
    
    <div id="position">您所在的位置：<a href="{webroot}">首页</a>{sdcms.getpostion(parentid," > ")}</div>
    <div class="w980 mt10 mc" id="container">
        <div class="left">
            <div class="w610 b">
                <div class="title">{classname}</div>
                <ul class="downlist">
                {sdcms:rs field="id,isurl,url,title,style,classid,point,intro,createdate,hits,softsize,sizeunit,stars,pic,ispic" table="sd_content" join="left join sd_model_down on sd_content.id=sd_model_down.cid" where="classid in([sonid]) and islock=1" order="ontop desc,id desc" pagesize="{var pagenum}"}
                {rs:eof}<li>没有资料</li>{/rs:eof}
                    <li>
                        <div class="pic"><img src="{if $rs[ispic]=0}{webroot}theme/default/images/nodown.gif{else}{$rs[pic]}{/if}" width="80" height="80" /></div>
                        <div class="list">
                            <p><a href="{$rs[link]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if} {$rs[style]}>{sdcms.cutstr($rs[title],40,1)}</a></p>
                            {sdcms.cutstr(sdcms.nohtml($rs[intro]),140,1)}
                            <span>更新日期：{$rs[createdate]}　推荐指数：{for j=1 to $rs[stars]}<img src="{webroot}theme/default/images/star.gif" />{/for}</span>
                         </div>
                        <div class="info">人气<p>{$rs[hits]}</p>大小<p>{$rs[softsize]}{$rs[sizeunit]}</p></div>
                    </li>
                    {/sdcms:rs}
                </ul>
                <div class="c mt10 list_page">{showpage}</div>
            </div>
        </div>
        <div class="right">
            <div class="b">
                <div class="subject">栏目类别</div>
                <ul class="topcate">
                    {sdcms:rp table="sd_category" top="0" where="followid=[classid]" order="ordnum,cateid"}
                    {rp:eof}{if followid=0}<li class="hover"><a href="{sdcms.getcateurl(classid)}">{classname}</a></dt>{else}{sdcms:rs table="sd_category" top="0" where="followid=[followid]" order="ordnum,cateid"}
                    {rs:eof}<li>没有资料</li>{/rs:eof}
                    <li {if $rs[cateid]=classid} class="hover"{/if}><a href="{$rs[link]}" title="{$rs[catename]}">{$rs[catename]}</a></li>
                    {/sdcms:rs}{/if}{/rp:eof}
                    <li {if $rp[cateid]=classid} class="hover"{/if}><a href="{$rp[link]}" title="{$rp[catename]}">{$rp[catename]}</a></li>
                    {/sdcms:rp}  
                </ul>
            </div>
            <div class="b mt10">
                <div class="subject">今日热点</div>
                <ul class="toplist">
                    {sdcms:rs top="10" field="id,title,style,createdate,isurl,url,classid" table="sd_content" where="islock=1 and classid in([sonid])" order="hits desc,id desc"}
                    <li><a href="{$rs[link]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if} {$rs[style]}>{sdcms.cutstr($rs[title],30,1)}</a></li>
                    {/sdcms:rs}   
                </ul>
            </div>
        </div>
    </div>
    {sdcms:include("../../sdcms_foot.asp")}